package pers.acp.test.application.controller

import io.gitee.zhangbinhub.acp.boot.log.LogAdapter
import io.gitee.zhangbinhub.acp.core.common.CommonTools
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import org.noear.solon.annotation.Controller
import org.noear.solon.annotation.Get
import org.noear.solon.annotation.Inject
import org.noear.solon.annotation.Mapping
import java.net.InetAddress

@Api("demo控制器")
@Controller
class TestDemoController {
    @ApiOperation("hello接口")
    @Get
    @Mapping("/hello")
    fun hello(): String {
        return "home，" + CommonTools.getWebRootAbsPath() + "，" + InetAddress.getLocalHost().hostAddress
    }
}